import request from '@/utils/request'

// 查询高速运营单位列表
export function listInsOperationUnit(query) {
  return request({
    url: '/check/insOperationUnit/list',
    method: 'get',
    params: query
  })
}

// 查询高速运营单位详细
export function getInsOperationUnit(operationUnitId) {
  return request({
    url: '/check/insOperationUnit/' + operationUnitId,
    method: 'get'
  })
}

// 新增高速运营单位
export function addInsOperationUnit(data) {
  return request({
    url: '/check/insOperationUnit',
    method: 'post',
    data: data
  })
}

// 修改高速运营单位
export function updateInsOperationUnit(data) {
  return request({
    url: '/check/insOperationUnit',
    method: 'put',
    data: data
  })
}

// 删除高速运营单位
export function delInsOperationUnit(operationUnitId) {
  return request({
    url: '/check/insOperationUnit/' + operationUnitId,
    method: 'delete'
  })
}
